/**
 * Created with Intellij IDEA.
 * Description:
 * User: wangj
 * Date: 2022-03-15
 * Time: 21:41
 */
public class Main {
    public static void main(String[] args) {
        LinkedList linkedList=new LinkedList();
        linkedList.addLast(1);
        linkedList.addLast(2);
        linkedList.addFirst(2);
        linkedList.addIndex(3,2);
        linkedList.addIndex(3,2);
        linkedList.removeAllKey(2);
        linkedList.display();



    }
}
